
idf_component_register(SRCS 
    plutovg-blend.c
    plutovg-canvas.c
    plutovg-font.c
    plutovg-matrix.c
    plutovg-paint.c
    plutovg-path.c
    plutovg-rasterize.c
    plutovg-surface.c
    plutovg-ft-math.c
    plutovg-ft-raster.c
    plutovg-ft-stroker.c
    
    INCLUDE_DIRS "." "plutovg"
)

target_compile_definitions(${COMPONENT_LIB} PRIVATE __STDC_NO_THREADS__ PLUTOVG_DISABLE_FONT_FACE_CACHE_LOAD)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wchar-subscripts -Wno-error=char-subscripts -Wno-error=incompatible-pointer-types)

# list(APPEND qjs_defines _GNU_SOURCE)